package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_stele_soul_activity_chose", autoSave = true, dataUpload = true, eventName = "stele_self")
public class LogSteleSoulActivityChoose extends BaseLogEntity {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "层数id", dataAttribute = "stele_floor")
    private int round;
    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "stele_choose")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogSteleSoulActivityChoose(int activityId, long userId, int round, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.round = round;
        this.reward = reward;
        this.time = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public int getRound() {
        return round;
    }

    public String getReward() {
        return reward;
    }

    public Date getTime() {
        return time;
    }
}

